package com.lwm.service;

import com.lwm.domain.ResponseResult;
import com.lwm.domain.SalesReturn;
import com.lwm.dto.SalesReturnDto;

import java.util.List;

public interface SalesReturnService {
    /**
     * 添加
     *
     * @param salesReturn 销售退货
     * @return {@link ResponseResult}
     */
    ResponseResult save(SalesReturn salesReturn);

    /**
     * 更新
     *
     * @param salesReturn 销售退货
     * @return {@link ResponseResult}
     */
    ResponseResult update(SalesReturn salesReturn);

    /**
     * 删除一批
     *
     * @param ids ids
     * @return {@link ResponseResult}
     */
    ResponseResult removeBatch(List<Long> ids);

    /**
     * 收到分页
     *
     * @param salesReturnDto 销售退货dto
     * @return {@link ResponseResult}
     */
    ResponseResult getPage(SalesReturnDto salesReturnDto);
}
